<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: ELF.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('apps_2elftosb_2common_2_e_l_f_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">apps/elftosb/common/ELF.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * File:    ELF.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * See included license file for license details.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#if !defined(_ELF_h_)</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define _ELF_h_</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="keyword">typedef</span> uint32_t Elf32_Addr;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">typedef</span> uint16_t Elf32_Half;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">typedef</span> <span class="comment">/*off_t*/</span> uint32_t Elf32_Off;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">typedef</span> int32_t Elf32_Sword;</div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="keyword">typedef</span> uint32_t Elf32_Word;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// All ELF structures are byte aligned. Any alignment padding is explicit.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#pragma pack(1)</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    EI_MAG0 = 0,</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    EI_MAG1,</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    EI_MAG2,</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    EI_MAG3,</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;    EI_CLASS,</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    EI_DATA,</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;    EI_VERSION,</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    EI_PAD,</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    EI_NIDENT = 16,</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="comment">// Magic number.</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    ELFMAG0 = 0x7f,</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    ELFMAG1 = <span class="charliteral">&#39;E&#39;</span>,</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    ELFMAG2 = <span class="charliteral">&#39;L&#39;</span>,</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    ELFMAG3 = <span class="charliteral">&#39;F&#39;</span>,</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="comment">// EI_CLASS</span></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    ELFCLASSNONE = 0,</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    ELFCLASS32 = 1,</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    ELFCLASS64 = 2,</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="comment">// EI_DATA</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    ELFDATANONE = 0,</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    ELFDATA2LSB = 1,</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    ELFDATA2MSB = 2</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;};</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html">   61</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_elf32___ehdr.html">Elf32_Ehdr</a></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;{</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#aebd5576e5ae99cb99c2eb76d94c7f9f7">   63</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="struct_elf32___ehdr.html#aebd5576e5ae99cb99c2eb76d94c7f9f7">e_ident</a>[EI_NIDENT]; </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a49e40a791813c06e3b6ebcb53aef1bb8">   64</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#a49e40a791813c06e3b6ebcb53aef1bb8">e_type</a>;                </div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a19bca7faba9e5573814643efc3574c7b">   65</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#a19bca7faba9e5573814643efc3574c7b">e_machine</a>;             </div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#aa27627bda53281221325df4dd782e800">   66</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___ehdr.html#aa27627bda53281221325df4dd782e800">e_version</a>;             </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#ab8a982696048d807017919b7d0145482">   67</a></span>&#160;    Elf32_Addr <a class="code" href="struct_elf32___ehdr.html#ab8a982696048d807017919b7d0145482">e_entry</a>;               </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a25c36fc010284a928604aae005b67ad1">   68</a></span>&#160;    Elf32_Off <a class="code" href="struct_elf32___ehdr.html#a25c36fc010284a928604aae005b67ad1">e_phoff</a>;                </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a00601af5187a1b3f8babfe9cddd95c15">   69</a></span>&#160;    Elf32_Off <a class="code" href="struct_elf32___ehdr.html#a00601af5187a1b3f8babfe9cddd95c15">e_shoff</a>;                </div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a87cf481be7917fafde0c4ecf78c8e574">   70</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___ehdr.html#a87cf481be7917fafde0c4ecf78c8e574">e_flags</a>;               </div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a04c658023e50479eed64f6d1b00a2504">   71</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#a04c658023e50479eed64f6d1b00a2504">e_ehsize</a>;              </div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#afa2289f96d86fcc568a3b1f40cc8953e">   72</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#afa2289f96d86fcc568a3b1f40cc8953e">e_phentsize</a>;           </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a360898812db1655f8cb8258780d9df5b">   73</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#a360898812db1655f8cb8258780d9df5b">e_phnum</a>;               </div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#ab53c709a841960e499da68e2316ed428">   74</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#ab53c709a841960e499da68e2316ed428">e_shentsize</a>;           </div><div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a11249bd7e61642742a68a3e7f69ac721">   75</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#a11249bd7e61642742a68a3e7f69ac721">e_shnum</a>;               </div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="struct_elf32___ehdr.html#a3b3070ccd7d971e8cb6ea58d4c6fab09">   76</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___ehdr.html#a3b3070ccd7d971e8cb6ea58d4c6fab09">e_shstrndx</a>;            </div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;};</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;{</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    ET_NONE,   </div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    ET_REL,    </div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    ET_EXEC,   </div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    ET_DYN,    </div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    ET_CORE,   </div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    ET_LOPROC, </div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    ET_HIPROC  </div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;};</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;{</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    EF_ARM_HASENTRY = 0x02,         </div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    EF_ARM_SYMSARESORTED = 0x04,    </div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    EF_ARM_DYNSYMSUSESEGIDX = 0x08, </div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    EF_ARM_MAPSYMSFIRST = 0x10,     </div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    EF_ARM_EABIMASK = 0xff000000, </div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    ARM_EABI_VERSION = 0x02000000 </div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;};</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00135"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html">  135</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_elf32___shdr.html">Elf32_Shdr</a></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;{</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#a6e8fd300ca473a31d0f65817ce371dfd">  137</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#a6e8fd300ca473a31d0f65817ce371dfd">sh_name</a>;      </div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#aab6c221dbd7e16987df41280fb915408">  138</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#aab6c221dbd7e16987df41280fb915408">sh_type</a>;      </div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#a27e003d8da37de3038a0065577a7743d">  139</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#a27e003d8da37de3038a0065577a7743d">sh_flags</a>;     </div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#a7e668a62cee74a2f9c6edabb5f45635a">  140</a></span>&#160;    Elf32_Addr <a class="code" href="struct_elf32___shdr.html#a7e668a62cee74a2f9c6edabb5f45635a">sh_addr</a>;      </div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#a6e37227a5777cddc0a9dbbb3c2598ec1">  141</a></span>&#160;    Elf32_Off <a class="code" href="struct_elf32___shdr.html#a6e37227a5777cddc0a9dbbb3c2598ec1">sh_offset</a>;     </div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#a84dc67bb0ab65880bbcd74fbee722ff1">  142</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#a84dc67bb0ab65880bbcd74fbee722ff1">sh_size</a>;      </div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#ad759308388eb14c5c6e4d636c38999da">  143</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#ad759308388eb14c5c6e4d636c38999da">sh_link</a>;      </div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#aef63fe62c2c9927f374c4f987954c6e5">  144</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#aef63fe62c2c9927f374c4f987954c6e5">sh_info</a>;      </div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#a399f50b3591e6286d4ad819f790979ed">  145</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#a399f50b3591e6286d4ad819f790979ed">sh_addralign</a>; </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="struct_elf32___shdr.html#a10c59cecc928aae27930601fe545d3ca">  146</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___shdr.html#a10c59cecc928aae27930601fe545d3ca">sh_entsize</a>; </div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;};</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;{</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    SHN_UNDEF = 0,</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    SHN_LORESERVE = 0xff00,</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    SHN_LOPROC = 0xff00,</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    SHN_HIPROC = 0xff1f,</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    SHN_ABS = 0xfff1,    </div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    SHN_COMMON = 0xfff2, </div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    SHN_HIRESERVE = 0xffff</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;};</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;{</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    SHT_NULL = 0,</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    SHT_PROGBITS = 1,</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    SHT_SYMTAB = 2,</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;    SHT_STRTAB = 3,</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    SHT_RELA = 4,</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    SHT_HASH = 5,</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    SHT_DYNAMIC = 6,</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    SHT_NOTE = 7,</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    SHT_NOBITS = 8,</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    SHT_REL = 9,</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    SHT_SHLIB = 10,</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    SHT_DYNSYM = 11</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;};</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;{</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    SHF_WRITE = 0x1,    </div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    SHF_ALLOC = 0x2,    </div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    SHF_EXECINSTR = 0x4 </div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;};</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;{</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    SHF_ENTRYSECT = 0x10000000, </div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;    SHF_COMDEF = 0x80000000     </div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;};</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">#define BSS_SECTION_NAME &quot;.bss&quot;</span></div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">#define DATA_SECTION_NAME &quot;.data&quot;</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="preprocessor">#define TEXT_SECTION_NAME &quot;.text&quot;</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;<span class="preprocessor">#define SHSTRTAB_SECTION_NAME &quot;.shstrtab&quot;</span></div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;<span class="preprocessor">#define STRTAB_SECTION_NAME &quot;.strtab&quot;</span></div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#define SYMTAB_SECTION_NAME &quot;.symtab&quot;</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html">  223</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_elf32___phdr.html">Elf32_Phdr</a></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;{</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#a8b1d2942ddb9abcb85db1429b5116923">  225</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___phdr.html#a8b1d2942ddb9abcb85db1429b5116923">p_type</a>;   </div><div class="line"><a name="l00226"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#ac590d4c4b26104216e53058b5b03eef0">  226</a></span>&#160;    Elf32_Off <a class="code" href="struct_elf32___phdr.html#ac590d4c4b26104216e53058b5b03eef0">p_offset</a>;  </div><div class="line"><a name="l00227"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#a01a298ebc899bcf9c23211a7bf1155a6">  227</a></span>&#160;    Elf32_Addr <a class="code" href="struct_elf32___phdr.html#a01a298ebc899bcf9c23211a7bf1155a6">p_vaddr</a>;  </div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#af18f0a179a5fca09e3c04bcdce3fac2f">  228</a></span>&#160;    Elf32_Addr <a class="code" href="struct_elf32___phdr.html#af18f0a179a5fca09e3c04bcdce3fac2f">p_paddr</a>;  </div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#ac9151f2e11001284bf1c7d2d2659555c">  229</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___phdr.html#ac9151f2e11001284bf1c7d2d2659555c">p_filesz</a>; </div><div class="line"><a name="l00230"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#ada1cdd3d6ccb79a17bed0e3c21379c84">  230</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___phdr.html#ada1cdd3d6ccb79a17bed0e3c21379c84">p_memsz</a>;  </div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#a35c457e6828894b7b275730593802050">  231</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___phdr.html#a35c457e6828894b7b275730593802050">p_flags</a>;  </div><div class="line"><a name="l00232"></a><span class="lineno"><a class="line" href="struct_elf32___phdr.html#afd09d9e4297b13fc94fd57d09f2a9f70">  232</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___phdr.html#afd09d9e4297b13fc94fd57d09f2a9f70">p_align</a>; </div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;};</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;{</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    PT_NULL = 0,</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;    PT_LOAD = 1,</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    PT_DYNAMIC = 2,</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    PT_INTERP = 3,</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    PT_NOTE = 4,</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    PT_SHLIB = 5,</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    PT_PHDR = 6</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;};</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;{</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    PF_X = 0x1, </div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    PF_W = 0x2, </div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;    PF_R = 0x4  </div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;};</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;{</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;    STN_UNDEF = 0 </div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;};</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00277"></a><span class="lineno"><a class="line" href="struct_elf32___sym.html">  277</a></span>&#160;<span class="keyword">struct </span><a class="code" href="struct_elf32___sym.html">Elf32_Sym</a></div><div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;{</div><div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="struct_elf32___sym.html#a6a972b30868879f8a1e071e0c45e5031">  279</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___sym.html#a6a972b30868879f8a1e071e0c45e5031">st_name</a>;     </div><div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="struct_elf32___sym.html#abf8ff76884bc5e2acb5f7eb42f733c2e">  280</a></span>&#160;    Elf32_Addr <a class="code" href="struct_elf32___sym.html#abf8ff76884bc5e2acb5f7eb42f733c2e">st_value</a>;    </div><div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="struct_elf32___sym.html#a1b410e69fecd2610bc7e58d2b0245053">  281</a></span>&#160;    Elf32_Word <a class="code" href="struct_elf32___sym.html#a1b410e69fecd2610bc7e58d2b0245053">st_size</a>;     </div><div class="line"><a name="l00282"></a><span class="lineno"><a class="line" href="struct_elf32___sym.html#a7d131c44ec48708b1c98f9b00ca9d528">  282</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="struct_elf32___sym.html#a7d131c44ec48708b1c98f9b00ca9d528">st_info</a>;  </div><div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="struct_elf32___sym.html#a2e1bf6bedb5180f74ea8cbaf9cedfd36">  283</a></span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="struct_elf32___sym.html#a2e1bf6bedb5180f74ea8cbaf9cedfd36">st_other</a>; </div><div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="struct_elf32___sym.html#a46e54847ab00fbea62df8ee5dff8dec6">  284</a></span>&#160;    Elf32_Half <a class="code" href="struct_elf32___sym.html#a46e54847ab00fbea62df8ee5dff8dec6">st_shndx</a>;    </div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;};</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div><div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;<span class="preprocessor">#define ELF32_ST_BIND(i) ((i) &gt;&gt; 4) </span></div><div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;<span class="preprocessor">#define ELF32_ST_TYPE(i) ((i)&amp;0x0f) </span></div><div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;<span class="preprocessor">#define ELF32_ST_INFO(b, t) \</span></div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;<span class="preprocessor">    (((b) &lt;&lt; 4) + ((t)&amp;0x0f)) </span></div><div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;<span class="preprocessor"></span></div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;<span class="preprocessor"></span></div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;</div><div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;{</div><div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;    STB_LOCAL = 0,  </div><div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;    STB_GLOBAL = 1, </div><div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    STB_WEAK = 2,   </div><div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="comment">// Processor-specific semantics.</span></div><div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    STB_LOPROC = 13,</div><div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    STB_HIPROC = 15</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;};</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;{</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;    STT_NOTYPE = 0,  </div><div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;    STT_OBJECT = 1,  </div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;    STT_FUNC = 2,    </div><div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    STT_SECTION = 3, </div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    STT_FILE = 4,    </div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;</div><div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    STT_LOPROC = 13, </div><div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    STT_HIPROC = 15  </div><div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;};</div><div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;<span class="keyword">enum</span></div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;{</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;    STO_THUMB = 1 </div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;};</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;<span class="preprocessor">#define ARM_SEQUENCE_MAPSYM &quot;$a&quot;</span></div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;<span class="preprocessor">#define DATA_SEQUENCE_MAPSYM &quot;$d&quot;</span></div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="preprocessor">#define THUMB_SEQUENCE_MAPSYM &quot;$t&quot;</span></div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;<span class="preprocessor">#define THUMB_BL_TAGSYM &quot;$b&quot;</span></div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;<span class="preprocessor">#define FN_PTR_CONST_TAGSYM &quot;$f&quot;</span></div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;<span class="preprocessor">#define INDIRECT_FN_CALL_TAGSYM &quot;$p&quot;</span></div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;<span class="preprocessor">#define MAPPING_SYMBOL_COUNT_TAGSYM &quot;$m&quot;</span></div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;<span class="preprocessor">#pragma pack()</span></div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;<span class="preprocessor">#endif // _ELF_h_</span></div><div class="ttc" id="struct_elf32___ehdr_html_afa2289f96d86fcc568a3b1f40cc8953e"><div class="ttname"><a href="struct_elf32___ehdr.html#afa2289f96d86fcc568a3b1f40cc8953e">Elf32_Ehdr::e_phentsize</a></div><div class="ttdeci">Elf32_Half e_phentsize</div><div class="ttdoc">Size in bytes of one entry in the program header table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:72</div></div>
<div class="ttc" id="struct_elf32___shdr_html"><div class="ttname"><a href="struct_elf32___shdr.html">Elf32_Shdr</a></div><div class="ttdoc">ELF section header. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:135</div></div>
<div class="ttc" id="struct_elf32___shdr_html_ad759308388eb14c5c6e4d636c38999da"><div class="ttname"><a href="struct_elf32___shdr.html#ad759308388eb14c5c6e4d636c38999da">Elf32_Shdr::sh_link</a></div><div class="ttdeci">Elf32_Word sh_link</div><div class="ttdoc">Section header table link index. Interpretation depends on section type. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:143</div></div>
<div class="ttc" id="struct_elf32___phdr_html_ac590d4c4b26104216e53058b5b03eef0"><div class="ttname"><a href="struct_elf32___phdr.html#ac590d4c4b26104216e53058b5b03eef0">Elf32_Phdr::p_offset</a></div><div class="ttdeci">Elf32_Off p_offset</div><div class="ttdoc">Offset in bytes from start of file to the first byte of the segment. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:226</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a04c658023e50479eed64f6d1b00a2504"><div class="ttname"><a href="struct_elf32___ehdr.html#a04c658023e50479eed64f6d1b00a2504">Elf32_Ehdr::e_ehsize</a></div><div class="ttdeci">Elf32_Half e_ehsize</div><div class="ttdoc">The ELF header&amp;#39;s size in bytes. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:71</div></div>
<div class="ttc" id="struct_elf32___sym_html_a1b410e69fecd2610bc7e58d2b0245053"><div class="ttname"><a href="struct_elf32___sym.html#a1b410e69fecd2610bc7e58d2b0245053">Elf32_Sym::st_size</a></div><div class="ttdeci">Elf32_Word st_size</div><div class="ttdoc">Size associated with symbol. 0 if the symbol has no size or an unknown size. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:281</div></div>
<div class="ttc" id="struct_elf32___phdr_html_ada1cdd3d6ccb79a17bed0e3c21379c84"><div class="ttname"><a href="struct_elf32___phdr.html#ada1cdd3d6ccb79a17bed0e3c21379c84">Elf32_Phdr::p_memsz</a></div><div class="ttdeci">Elf32_Word p_memsz</div><div class="ttdoc">Size in bytes of the segment in memory. May be zero. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:230</div></div>
<div class="ttc" id="struct_elf32___sym_html_a46e54847ab00fbea62df8ee5dff8dec6"><div class="ttname"><a href="struct_elf32___sym.html#a46e54847ab00fbea62df8ee5dff8dec6">Elf32_Sym::st_shndx</a></div><div class="ttdeci">Elf32_Half st_shndx</div><div class="ttdoc">Section header table index for this symbol. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:284</div></div>
<div class="ttc" id="struct_elf32___phdr_html_ac9151f2e11001284bf1c7d2d2659555c"><div class="ttname"><a href="struct_elf32___phdr.html#ac9151f2e11001284bf1c7d2d2659555c">Elf32_Phdr::p_filesz</a></div><div class="ttdeci">Elf32_Word p_filesz</div><div class="ttdoc">Number of bytes of file data the segment consumes. May be zero. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:229</div></div>
<div class="ttc" id="struct_elf32___phdr_html_af18f0a179a5fca09e3c04bcdce3fac2f"><div class="ttname"><a href="struct_elf32___phdr.html#af18f0a179a5fca09e3c04bcdce3fac2f">Elf32_Phdr::p_paddr</a></div><div class="ttdeci">Elf32_Addr p_paddr</div><div class="ttdoc">Physical address, for systems where this is relevant. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:228</div></div>
<div class="ttc" id="struct_elf32___shdr_html_a6e8fd300ca473a31d0f65817ce371dfd"><div class="ttname"><a href="struct_elf32___shdr.html#a6e8fd300ca473a31d0f65817ce371dfd">Elf32_Shdr::sh_name</a></div><div class="ttdeci">Elf32_Word sh_name</div><div class="ttdoc">The section&amp;#39;s name. Index into the section header string table section. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:137</div></div>
<div class="ttc" id="struct_elf32___shdr_html_aab6c221dbd7e16987df41280fb915408"><div class="ttname"><a href="struct_elf32___shdr.html#aab6c221dbd7e16987df41280fb915408">Elf32_Shdr::sh_type</a></div><div class="ttdeci">Elf32_Word sh_type</div><div class="ttdoc">Section type, describing the contents and semantics. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:138</div></div>
<div class="ttc" id="struct_elf32___phdr_html_afd09d9e4297b13fc94fd57d09f2a9f70"><div class="ttname"><a href="struct_elf32___phdr.html#afd09d9e4297b13fc94fd57d09f2a9f70">Elf32_Phdr::p_align</a></div><div class="ttdeci">Elf32_Word p_align</div><div class="ttdoc">Alignment constraint for segment addresses. Possible values are 0 and positive powers of 2...</div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:232</div></div>
<div class="ttc" id="struct_elf32___phdr_html_a35c457e6828894b7b275730593802050"><div class="ttname"><a href="struct_elf32___phdr.html#a35c457e6828894b7b275730593802050">Elf32_Phdr::p_flags</a></div><div class="ttdeci">Elf32_Word p_flags</div><div class="ttdoc">Flags relevant to the segment. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:231</div></div>
<div class="ttc" id="struct_elf32___phdr_html"><div class="ttname"><a href="struct_elf32___phdr.html">Elf32_Phdr</a></div><div class="ttdoc">ELF program header. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:223</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a3b3070ccd7d971e8cb6ea58d4c6fab09"><div class="ttname"><a href="struct_elf32___ehdr.html#a3b3070ccd7d971e8cb6ea58d4c6fab09">Elf32_Ehdr::e_shstrndx</a></div><div class="ttdeci">Elf32_Half e_shstrndx</div><div class="ttdoc">Section header table index of the section name string table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:76</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_aebd5576e5ae99cb99c2eb76d94c7f9f7"><div class="ttname"><a href="struct_elf32___ehdr.html#aebd5576e5ae99cb99c2eb76d94c7f9f7">Elf32_Ehdr::e_ident</a></div><div class="ttdeci">unsigned char e_ident[EI_NIDENT]</div><div class="ttdoc">Magic number identifying the file format. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:63</div></div>
<div class="ttc" id="struct_elf32___shdr_html_a7e668a62cee74a2f9c6edabb5f45635a"><div class="ttname"><a href="struct_elf32___shdr.html#a7e668a62cee74a2f9c6edabb5f45635a">Elf32_Shdr::sh_addr</a></div><div class="ttdeci">Elf32_Addr sh_addr</div><div class="ttdoc">The address at which the section will appear in the memory image, or 0. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:140</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a87cf481be7917fafde0c4ecf78c8e574"><div class="ttname"><a href="struct_elf32___ehdr.html#a87cf481be7917fafde0c4ecf78c8e574">Elf32_Ehdr::e_flags</a></div><div class="ttdeci">Elf32_Word e_flags</div><div class="ttdoc">Processor-specific flags associated with the file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:70</div></div>
<div class="ttc" id="struct_elf32___sym_html_a7d131c44ec48708b1c98f9b00ca9d528"><div class="ttname"><a href="struct_elf32___sym.html#a7d131c44ec48708b1c98f9b00ca9d528">Elf32_Sym::st_info</a></div><div class="ttdeci">unsigned char st_info</div><div class="ttdoc">Specified the symbol&amp;#39;s type and binding attributes. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:282</div></div>
<div class="ttc" id="struct_elf32___sym_html"><div class="ttname"><a href="struct_elf32___sym.html">Elf32_Sym</a></div><div class="ttdoc">ELF symbol table entry. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:277</div></div>
<div class="ttc" id="struct_elf32___phdr_html_a01a298ebc899bcf9c23211a7bf1155a6"><div class="ttname"><a href="struct_elf32___phdr.html#a01a298ebc899bcf9c23211a7bf1155a6">Elf32_Phdr::p_vaddr</a></div><div class="ttdeci">Elf32_Addr p_vaddr</div><div class="ttdoc">Virtual address at which the segment will reside in memory. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:227</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a25c36fc010284a928604aae005b67ad1"><div class="ttname"><a href="struct_elf32___ehdr.html#a25c36fc010284a928604aae005b67ad1">Elf32_Ehdr::e_phoff</a></div><div class="ttdeci">Elf32_Off e_phoff</div><div class="ttdoc">Program header table offset in bytes, or 0 if no program header table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:68</div></div>
<div class="ttc" id="struct_elf32___sym_html_a6a972b30868879f8a1e071e0c45e5031"><div class="ttname"><a href="struct_elf32___sym.html#a6a972b30868879f8a1e071e0c45e5031">Elf32_Sym::st_name</a></div><div class="ttdeci">Elf32_Word st_name</div><div class="ttdoc">Index into file&amp;#39;s string table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:279</div></div>
<div class="ttc" id="struct_elf32___shdr_html_a84dc67bb0ab65880bbcd74fbee722ff1"><div class="ttname"><a href="struct_elf32___shdr.html#a84dc67bb0ab65880bbcd74fbee722ff1">Elf32_Shdr::sh_size</a></div><div class="ttdeci">Elf32_Word sh_size</div><div class="ttdoc">The section&amp;#39;s size in bytes. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:142</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_ab53c709a841960e499da68e2316ed428"><div class="ttname"><a href="struct_elf32___ehdr.html#ab53c709a841960e499da68e2316ed428">Elf32_Ehdr::e_shentsize</a></div><div class="ttdeci">Elf32_Half e_shentsize</div><div class="ttdoc">Size in bytes of an entry in the section header table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:74</div></div>
<div class="ttc" id="struct_elf32___shdr_html_a399f50b3591e6286d4ad819f790979ed"><div class="ttname"><a href="struct_elf32___shdr.html#a399f50b3591e6286d4ad819f790979ed">Elf32_Shdr::sh_addralign</a></div><div class="ttdeci">Elf32_Word sh_addralign</div><div class="ttdoc">Address alignment constraint. Values are 0 and positive powers of 2. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:145</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a49e40a791813c06e3b6ebcb53aef1bb8"><div class="ttname"><a href="struct_elf32___ehdr.html#a49e40a791813c06e3b6ebcb53aef1bb8">Elf32_Ehdr::e_type</a></div><div class="ttdeci">Elf32_Half e_type</div><div class="ttdoc">Identifies the object file format. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:64</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a11249bd7e61642742a68a3e7f69ac721"><div class="ttname"><a href="struct_elf32___ehdr.html#a11249bd7e61642742a68a3e7f69ac721">Elf32_Ehdr::e_shnum</a></div><div class="ttdeci">Elf32_Half e_shnum</div><div class="ttdoc">Number of entries in the section header table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:75</div></div>
<div class="ttc" id="struct_elf32___shdr_html_a27e003d8da37de3038a0065577a7743d"><div class="ttname"><a href="struct_elf32___shdr.html#a27e003d8da37de3038a0065577a7743d">Elf32_Shdr::sh_flags</a></div><div class="ttdeci">Elf32_Word sh_flags</div><div class="ttdoc">Section flags describing various attributes. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:139</div></div>
<div class="ttc" id="struct_elf32___ehdr_html"><div class="ttname"><a href="struct_elf32___ehdr.html">Elf32_Ehdr</a></div><div class="ttdoc">ELF file header. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:61</div></div>
<div class="ttc" id="struct_elf32___sym_html_a2e1bf6bedb5180f74ea8cbaf9cedfd36"><div class="ttname"><a href="struct_elf32___sym.html#a2e1bf6bedb5180f74ea8cbaf9cedfd36">Elf32_Sym::st_other</a></div><div class="ttdeci">unsigned char st_other</div><div class="ttdoc">Currently 0 (reserved). </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:283</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_aa27627bda53281221325df4dd782e800"><div class="ttname"><a href="struct_elf32___ehdr.html#aa27627bda53281221325df4dd782e800">Elf32_Ehdr::e_version</a></div><div class="ttdeci">Elf32_Word e_version</div><div class="ttdoc">Object file version. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:66</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a19bca7faba9e5573814643efc3574c7b"><div class="ttname"><a href="struct_elf32___ehdr.html#a19bca7faba9e5573814643efc3574c7b">Elf32_Ehdr::e_machine</a></div><div class="ttdeci">Elf32_Half e_machine</div><div class="ttdoc">Specified the architecture for the object file. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:65</div></div>
<div class="ttc" id="struct_elf32___shdr_html_a10c59cecc928aae27930601fe545d3ca"><div class="ttname"><a href="struct_elf32___shdr.html#a10c59cecc928aae27930601fe545d3ca">Elf32_Shdr::sh_entsize</a></div><div class="ttdeci">Elf32_Word sh_entsize</div><div class="ttdoc">Size in bytes of section entries, or 0 if the section does not have fixed-size entries. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:146</div></div>
<div class="ttc" id="struct_elf32___shdr_html_a6e37227a5777cddc0a9dbbb3c2598ec1"><div class="ttname"><a href="struct_elf32___shdr.html#a6e37227a5777cddc0a9dbbb3c2598ec1">Elf32_Shdr::sh_offset</a></div><div class="ttdeci">Elf32_Off sh_offset</div><div class="ttdoc">Offset from beginning of the file to the first byte in the section. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:141</div></div>
<div class="ttc" id="struct_elf32___sym_html_abf8ff76884bc5e2acb5f7eb42f733c2e"><div class="ttname"><a href="struct_elf32___sym.html#abf8ff76884bc5e2acb5f7eb42f733c2e">Elf32_Sym::st_value</a></div><div class="ttdeci">Elf32_Addr st_value</div><div class="ttdoc">Value associated with the symbol. Depends on context. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:280</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a360898812db1655f8cb8258780d9df5b"><div class="ttname"><a href="struct_elf32___ehdr.html#a360898812db1655f8cb8258780d9df5b">Elf32_Ehdr::e_phnum</a></div><div class="ttdeci">Elf32_Half e_phnum</div><div class="ttdoc">Number of entries in the program header table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:73</div></div>
<div class="ttc" id="struct_elf32___phdr_html_a8b1d2942ddb9abcb85db1429b5116923"><div class="ttname"><a href="struct_elf32___phdr.html#a8b1d2942ddb9abcb85db1429b5116923">Elf32_Phdr::p_type</a></div><div class="ttdeci">Elf32_Word p_type</div><div class="ttdoc">What type of segment this header describes. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:225</div></div>
<div class="ttc" id="struct_elf32___shdr_html_aef63fe62c2c9927f374c4f987954c6e5"><div class="ttname"><a href="struct_elf32___shdr.html#aef63fe62c2c9927f374c4f987954c6e5">Elf32_Shdr::sh_info</a></div><div class="ttdeci">Elf32_Word sh_info</div><div class="ttdoc">Extra information about the section. Depends on section type. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:144</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_a00601af5187a1b3f8babfe9cddd95c15"><div class="ttname"><a href="struct_elf32___ehdr.html#a00601af5187a1b3f8babfe9cddd95c15">Elf32_Ehdr::e_shoff</a></div><div class="ttdeci">Elf32_Off e_shoff</div><div class="ttdoc">Section header table offset in bytes, or 0 if no section header table. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:69</div></div>
<div class="ttc" id="struct_elf32___ehdr_html_ab8a982696048d807017919b7d0145482"><div class="ttname"><a href="struct_elf32___ehdr.html#ab8a982696048d807017919b7d0145482">Elf32_Ehdr::e_entry</a></div><div class="ttdeci">Elf32_Addr e_entry</div><div class="ttdoc">Virtual address of the entry point, or 0. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:67</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_96c2f84c885cff71a930b6845f88cdd3.html">elftosb</a></li><li class="navelem"><a class="el" href="dir_c476059e18722267e10e2fb2cca6f785.html">common</a></li><li class="navelem"><b>ELF.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:49 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
